import type { ApiPagination, ApiPaginationParams } from '#types/utils'
import { requestClient } from '../request'
import type { cooperationPageListItem } from './model/cooperationModel'

// 合作关系
export default class CooperationApi {
    static get inst() {
        return CooperationApi._inst || (CooperationApi._inst = new CooperationApi())
    }
    private static _inst: CooperationApi
    /**
     * 分页
     * @param params
     */
    getPageList(params: ApiPaginationParams<{ username?: string }>) {
        return requestClient.get<ApiPagination<cooperationPageListItem>>(
            '/customerServiceApply/listCreatorsCooperationSellListPage',
            {
                params
            }
        )
    }
}
